home *** CD-ROM | disk | FTP | other *** search
- Path: ulysses.midtown.net!news
- From: samwise@midtown.net (Rick)
- Newsgroups: comp.lang.c++
- Subject: C++ for loop
- Date: Sun, 11 Feb 1996 19:49:57 GMT
- Organization:
- Message-ID: <4flhm3$t3a@ulysses.midtown.net>
- NNTP-Posting-Host: samwise.midtown.net
- X-Newsreader: Forte Agent .99a.107
-
- I'm in my second week in a C++ programming class. I like it, its a
- lot like Pascal. I want to draw a box, so I converted an old Pascal
- routine that I wrote. I can't find a good explanation on the for
- command. Wonder what I am doing wrong. I hate to wait for Monday to
- ask. This is what I am trying:
-
- for(I=2;I >= 79;I++)
- {
- gotoxy(I,1);
- printf("-"); // #205 print #205
- };
- I want to do like a FOR NEXT in BASIC or For Do in Pascal. I want to
- count from 2 to 79 and store the incremented value each time in I,
- using it for my gotoxy() screen position
- Thanks
-
-
-
- ...Give me back my data ya dirtbag machine!
-
-